#ifndef GLSTUDY_INDEXBUFFER_H
#define GLSTUDY_INDEXBUFFER_H

#include "Render.h"
class IndexBuffer
{
public:
	IndexBuffer(const unsigned int* data,unsigned int count,GLenum usage=GL_STATIC_DRAW);
	void bind()const;
	void unbind()const;
	~IndexBuffer();
	inline unsigned int count()const {return m_count;}
private:
	unsigned int m_id;
	unsigned int m_count;
};


#endif //GLSTUDY_INDEXBUFFER_H
